// -------------------------------------------------------------------------
//    @FileName			:    NFCProxyLogicModule.h
//    @Author           :    LvSheng.Huang
//    @Date             :    2013-05-06
//    @Module           :    NFCProxyLogicModule
//
// -------------------------------------------------------------------------

#ifndef PLAYERDBMODULE_H
#define PLAYERDBMODULE_H
#include "stdafx.h"


class PlayerDbModule
	: public NFIModule
{
public:
	PlayerDbModule(NFIPluginManager* p)
	{
		pPluginManager = p;
	}

	virtual bool Init();
	virtual bool Shut();
	virtual bool Execute();
	virtual bool AfterInit();
public:
	virtual bool ReadUserData(NFGUID& UserId);
	virtual bool SaveUserData(NFGUID& UserId);
	void OnSaveDataCallBack(const NFGUID& self, const int nRet, const std::string& strUseData);
	void OnReadUserDataCallBack(const NFGUID& self, const int nRet, const std::vector<std::string>& recordVec, const std::string& strUseData);
protected:


protected:
	NFIClassModule* m_pClassModule;
	NFIKernelModule* m_pKernelModule;
	NFIAsyMysqlModule * m_pPlayerDb;
	PlayerModule* m_pPlayerModule;
private:
};

#endif